package com.example.web.websystem.controller;

import com.example.web.websystem.config.SystemProperties;
import com.example.web.websystem.response.CommonReturnData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by YangGang on 2019/03/31 17:42.
 */
@RestController()
@RequestMapping("/sys")
public class SysController {
    @Autowired
    private SystemProperties systemProperties;

    @GetMapping("/version")
    public CommonReturnData version() {
        return CommonReturnData.success(systemProperties);
    }


}
